using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Add Main Ring Layout</para>
    /// <para>Add a main ring layout to a diagram template</para>
    /// <para>将主环布局添加到逻辑示意图模板</para>
    /// </summary>    
    [DisplayName("Add Main Ring Layout")]
    public class AddMainRingLayout : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddMainRingLayout()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_is_active">
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public AddMainRingLayout(object _in_utility_network, object _template_name, _is_active_value _is_active)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
            this._is_active = _is_active;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Add Main Ring Layout";

        public override string CallName => "un.AddMainRingLayout";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _is_active.GetGPValue(), _are_containers_preserved.GetGPValue(), _ring_type.GetGPValue(), _is_unit_absolute.GetGPValue(), _ring_width_absolute, _ring_width_proportional, _ring_height_absolute, _ring_height_proportional, _tree_type.GetGPValue(), _perpendicular_absolute, _perpendicular_proportional, _along_absolute, _along_proportional, _breakpoint_position, _edge_display_type.GetGPValue(), _out_utility_network, _out_template_name, _offset_absolute, _offset_proportional];

        /// <summary>
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Active")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _is_active_value _is_active { get; set; }

        public enum _is_active_value
        {
            /// <summary>
            /// <para>ACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ACTIVE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>INACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INACTIVE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Preserve container layout</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Preserve container layout")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _are_containers_preserved_value _are_containers_preserved { get; set; } = _are_containers_preserved_value._false;

        public enum _are_containers_preserved_value
        {
            /// <summary>
            /// <para>PRESERVE_CONTAINERS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PRESERVE_CONTAINERS")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>IGNORE_CONTAINERS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("IGNORE_CONTAINERS")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Ring Type</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Ring Type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _ring_type_value _ring_type { get; set; } = _ring_type_value._ELLIPSE;

        public enum _ring_type_value
        {
            /// <summary>
            /// <para>ELLIPSE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ELLIPSE")]
            [GPEnumValue("ELLIPSE")]
            _ELLIPSE,

            /// <summary>
            /// <para>RECTANGLE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("RECTANGLE")]
            [GPEnumValue("RECTANGLE")]
            _RECTANGLE,

        }

        /// <summary>
        /// <para>Spacing values interpreted as absolute units in the diagram coordinate system</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Spacing values interpreted as absolute units in the diagram coordinate system")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _is_unit_absolute_value _is_unit_absolute { get; set; } = _is_unit_absolute_value._false;

        public enum _is_unit_absolute_value
        {
            /// <summary>
            /// <para>ABSOLUTE_UNIT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ABSOLUTE_UNIT")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>PROPORTIONAL_UNIT</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PROPORTIONAL_UNIT")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Ring Width</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Ring Width")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _ring_width_absolute { get; set; } = "50 Unknown";


        /// <summary>
        /// <para>Ring Width</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Ring Width")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _ring_width_proportional { get; set; } = 50;


        /// <summary>
        /// <para>Ring Height</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Ring Height")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _ring_height_absolute { get; set; } = "20 Unknown";


        /// <summary>
        /// <para>Ring Height</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Ring Height")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _ring_height_proportional { get; set; } = 20;


        /// <summary>
        /// <para>Hierarchical Tree Type</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Hierarchical Tree Type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _tree_type_value _tree_type { get; set; } = _tree_type_value._SMART_TREE;

        public enum _tree_type_value
        {
            /// <summary>
            /// <para>BOTH_SIDES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("BOTH_SIDES")]
            [GPEnumValue("BOTH_SIDES")]
            _BOTH_SIDES,

            /// <summary>
            /// <para>LEFT_SIDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("LEFT_SIDE")]
            [GPEnumValue("LEFT_SIDE")]
            _LEFT_SIDE,

            /// <summary>
            /// <para>RIGHT_SIDE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("RIGHT_SIDE")]
            [GPEnumValue("RIGHT_SIDE")]
            _RIGHT_SIDE,

            /// <summary>
            /// <para>SMART_TREE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("SMART_TREE")]
            [GPEnumValue("SMART_TREE")]
            _SMART_TREE,

        }

        /// <summary>
        /// <para>Between Junctions Perpendicular to the Direction</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Between Junctions Perpendicular to the Direction")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _perpendicular_absolute { get; set; } = "2 Unknown";


        /// <summary>
        /// <para>Between Junctions Perpendicular to the Direction</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Between Junctions Perpendicular to the Direction")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _perpendicular_proportional { get; set; } = 2;


        /// <summary>
        /// <para>Between Junctions Along the Direction</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Between Junctions Along the Direction")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _along_absolute { get; set; } = "2 Unknown";


        /// <summary>
        /// <para>Between Junctions Along the Direction</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Between Junctions Along the Direction")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _along_proportional { get; set; } = 2;


        /// <summary>
        /// <para>Break Point Relative Position (%)</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Break Point Relative Position (%)")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _breakpoint_position { get; set; } = 30;


        /// <summary>
        /// <para>Edge Display Type</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Edge Display Type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _edge_display_type_value _edge_display_type { get; set; } = _edge_display_type_value._REGULAR_EDGES;

        public enum _edge_display_type_value
        {
            /// <summary>
            /// <para>REGULAR_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("REGULAR_EDGES")]
            [GPEnumValue("REGULAR_EDGES")]
            _REGULAR_EDGES,

            /// <summary>
            /// <para>ORTHOGONAL_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ORTHOGONAL_EDGES")]
            [GPEnumValue("ORTHOGONAL_EDGES")]
            _ORTHOGONAL_EDGES,

            /// <summary>
            /// <para>CURVED_EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("CURVED_EDGES")]
            [GPEnumValue("CURVED_EDGES")]
            _CURVED_EDGES,

        }

        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        /// <summary>
        /// <para>Offset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Offset")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public string _offset_absolute { get; set; } = "0 Unknown";


        /// <summary>
        /// <para>Offset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Offset")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public double _offset_proportional { get; set; } = 0;


        public AddMainRingLayout SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}